package com.example.demo.aop.asp;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
import org.springframework.stereotype.Repository;

@Repository
public class Method3 implements BeanDefinitionRegistryPostProcessor{
	public Method3() {
		System.out.println("--------这是Method的constructer-----------");
	}
	
	public void aspect() {
		System.out.println("this is aspect");
	}
	
	@Override
	public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
		System.out.println("**********this is Method postProcessBeanFactory**********");

	}

	@Override
	public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
		// TODO Auto-generated method stub
		
	}
}
